<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2022/11/22
  Time: 14:45
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<table border="1" width="800">
    <tr>
        <td>商品id</td>
        <td>商品名称</td>
        <td>商品价格</td>
        <td>商品数量</td>
        <td>删除</td>
    </tr>
    <c:forEach items="${list}" var="goods">
        <tr>
            <td>${goods.gid}</td>
            <td>${goods.gname}</td>
            <td>${goods.gprice}</td>
            <td>${goods.gnumber}</td>
            <td><a href="../delete?gid=${goods.gid}">删除</a>></td>
        </tr>
    </c:forEach>
</table>
</body>
</html>